package com.zhouxl.jackson.xml.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

import java.util.List;

@Data
@JacksonXmlRootElement(localName = "book")  //root根是book
@JsonIgnoreProperties(ignoreUnknown = true)
public class Book {
    @JacksonXmlElementWrapper(useWrapping = false)    //remote是一个没有list包围的list
    private List<Remote> remote;

    @JacksonXmlElementWrapper(useWrapping = false)
    private List<Project> project;

}